﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Drive.LiveChat.Model
{
    public class ChatMessage
    {
        public long Id { get; set; }

        /// <summary>
        /// chat session id
        /// </summary>
        public long ConvId { get; set; }
        public int AgentId { get; set; }
        public long VisitorId { get; set; }

        /// <summary>
        /// 当访客被关联了具体用户时填写该字段
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// agent|visitor
        /// </summary>
        public string SendBy { get; set; }

        public string Content { get; set; }

        /// <summary>
        /// text|image|file
        /// </summary>

        public string ContentType { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime { get; set; }

        /// <summary>
        /// 收到时间，因为上报可能不及时或丢失，并不完全准确，仅供参考。
        /// </summary>
        public DateTime? RecvTime { get; set; }

        /// <summary>
        /// 阅读时间，因为上报可能不及时或丢失，并不完全准确，仅供参考。
        /// </summary>
        public DateTime? ReadTime { get; set; }
    }
}
